<html>
<body>
<p>报告不是所有抽象属性或方法都在子类中定义的情况。</p>
<p><b>示例：</b></p>
<pre><code>
from abc import abstractmethod, ABC


class Figure(ABC):

    @abstractmethod
    def do_figure(self):
        pass


class Triangle(Figure):
    def do_triangle(self):
        pass
</code></pre>
<p>应用快速修复后，IDE 为 <code>Triangle</code> 类实现抽象方法：</p>
<pre><code>
from abc import abstractmethod, ABC


class Figure(ABC):

    @abstractmethod
    def do_figure(self):
        pass


class Triangle(Figure):
    def do_figure(self):
        pass

    def do_triangle(self):
        pass
</code></pre>
</body>
</html>